<!DOCTYPE html>
<html lang="en">
<head>
    <script src="../js/vue.js"></script>
    <title>MVVM</title>
</head>
<body>
    <!-- 
        m：model，就是data数据
        v：view，就是模板代码
        vm：view-model，实际上就是Vue实例对象
     -->
    <div id="root">
        <h1>{{msg}}</h1>
        <h1>{{address}}</h1>
    </div>
    <script>
        new Vue({
            el:"#root",
            data:{
                msg:'iwat',
                address:'xiahetuan'
            }
        });
    </script>
</body>
</html>